Ϊ̫ûResinϵԻ߰װʹó⣬ҽresinƽ̨һ£ûгִֵĸ⣬ҵһЩĵøҽ˶resin̫˽⣬ֻܸߴȷʹ̳ڷǲȷģҲ̫ӭָ


Windows XP Professional SP1
Resin 2.1.2/3.0.14
MySQL 4.0.16
IE6.0 SP1
LyBBS 6.1

1conf/resin.conf޸
<doc-dir>D:\web\service\lybbs61</doc-dir>
ָlybbsļУطҳָD:\web\serviceļУϣͨhttp://localhost:/8080/lybbs61̳ûгɹֱָlybbs61ļС
ԿůˮṩĽ
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2resinвWEB-INF/libеİҰҪİmysqljdbc${resin_home}/libУעresinԭиmysql-jdbc.jarİǾɰɾ°滻

${resin_home}/bin/httpd.exeresinhttp://localhost:8080ֱӷ̳
ͨhttp://localhost:8080/test.jsp鿴Ƿȷ

3resin3.0.14У԰lybbs.warֱӿwebapps棬resinʱԶѹѹ󣬰web-inf\lib\mysql-connector-java-3.0.10-stable-bin.jar${resin_home}\libУ޸web-inf\classes\db.propertiesȻresintest.jspǷȷ

Ϊ˶resin˽⣬ԣֻṩҸ˵÷ҿȰַresinȷ󣬾˵ȷģҪûԼųResin
˵е⣬иõİ취ϣҸǹͨ

ڳ[WARN] Failed in getting a instance of DBConnect from DBConnectManager, searches 0 results.ϢκεģûwarnϢֻҪעerror/fatalϢ


------------------------------------------------------------------
ůˮṩresinöwebappsĵ
http://mysql.lybbs.net/bbs_topic.do?forumID=13&postID=15376
------------------------------------------------------------------
óɹķóҷ

ģߣ

һresinconfļã

òĸĿ¼һϵΪd̽˸wwwĿ¼òͬweb򡣵ȻҲòͬƺĿ¼ʵҲ԰ѲͬĳڲͬĿ¼ȱͳһԣ

<http-server app-dir="d:\www">
 <!--
     - The root file directory of the server.  Apache users will change
     - this to /usr/local/apache/htdocs and IIS users will change it
     - to c:\inetpub\wwwroot
    -->
  <doc-dir>d:\www</doc-dir>
          ...
          ...

       Ϊresinãеwww.aaa.comwww.bbb.comΪ˲ӦĿ¼ҲõģҿԸԼӦáһҲconfļ
     <http-server>
     .....
     .....
<host id='www.aaa.com'>
      <app-dir>d:\www\aaa</app-dir>
         <war-dir>d:\resin\webapps\aaa_lybbs\</war-dir>
       </host>
       <host id='www.bbb.com'>
         <app-dir>d:\www\bbb</app-dir>
         <war-dir>d:\resin\webapps\bbb_lybbs\</war-dir> 
       </host>
     ....
     ....
    </http-server>

ڶļĿ¼

       Ǹļļ²ļΪҿԸԼ

resinwebappsĿ¼½Ŀ¼ֱǡaaa_lybbs͡bbb_lybbsĿ¼Ӧconfļġwww.aaa.com͡www.bbb.com

lybbs.warļĿ¼£ȻѹҲԣĿ¼ͷֱһlybbsĿ¼ˣȻlybbsĿ¼Ը֣Ӧ̳ҲҪӦŸ֣

      ڸԵĳдӾͿԴlybbswww.aaa.comindex.jspдģ<a href="/lybbs">򿪵Ӿǡwww.aaa.com/lybbsӦĳдҲġ



ΪܲгɹҪڱhostsļݣ

127.0.0.1www.aaa.com
       127.0.0.1www.bbb.com

       һҪΪ˿ڱǷɹ

Ͼõọ̈̄԰ɣ

ףҺˣ
